package com.llb666.shop.order.domain.client;

import com.llb666.common.core.web.response.BaseResponse;
import com.llb666.shop.order.api.dto.MerchantOrdersDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author llb666
 */
@Component
@FeignClient(contextId = "paymentOrderClient", value = "shop-payment")
public interface PaymentOrderClient {

    /**
     * 支付.
     *
     * @param merchantOrdersDto 下单dto
     * @return true/false
     */
    @PostMapping("payment/createMerchantOrder")
    BaseResponse createPaymentOrder(MerchantOrdersDto merchantOrdersDto);

}
